@extends('layout.homehf')
@section('title','前台首页')
@section('content')
 <div id="big_banner_wrap">
         <ul id="banner_menu_wrap">
         	 @foreach($cates as $k=>$v)
             <li class="active">
                 <a href = "/home/goodslist/index/{{$v->id}}" >{{$v->catename}}</a>
                 <a class="banner_menu_i">&gt;</a>
                 <div class="banner_menu_content" style="width: 600px; top: -20px;">
                     <ul class="banner_menu_content_ul">
                       @foreach($v->goods as $kk=>$vv)
                         <li><a href = "/default/{{$vv->id}}" >{{$vv->proname}}</a>
                            <a><img src="{{$vv->image}}" width = "35px"></a>
                             <span>选购</span>
                         </li>
                     @endforeach
                     </ul>
                 </div>
             </li>
             @endforeach
         </ul>
        
        @if (session('success'))
            <script type="text/javascript">
                alert('下单成功,已为您跳转到首页,欢迎继续购物!');
            </script>
        @endif
        @if (session('error'))
            <script type="text/javascript">
                alert('提交订单失败了')
            </script>
        @endif
    

         <!-- 打轮播图管理 -->
         <div id="big_banner_pic_wrap">
             <ul id="big_banner_pic">

                @foreach($cimgs as $key=>$value)
                 <li><img src="{{url($value->pic)}}"></li>
                @endforeach

             </ul>
         </div>
         <div id="big_banner_change_wrap">
             <div id="big_banner_change_prev"> &lt;</div>
             <div id="big_banner_change_next">&gt;</div>
         </div>
     </div>
     <div id="head_other_wrap">
         <div id="head_other">
             <ul>
                 <li>
                     <div id="div1">
                         <p>START</p>
                         <p>开放购买</p>
                     </div>
                 </li>
                 <li>
                     <div id="div2">
                         <p>GROUND</p>
                         <p>企业团购</p>
                     </div>
                 </li>
                 <li>
                     <div id="div3">
                         <p>RETROFIT</p>
                         <p>官方产品</p>
                     </div>
                 </li>
                 <li>
                     <div id="div4">
                         <p>CHANNEL</p>
                         <p>F码通道</p>
                     </div>
                 </li>
                 <li>
                     <div id="div5">
                         <p>RECHARGE</p>
                         <p>话费充值</p>
                     </div>
                 </li>
                 <li>
                     <div id="div6">
                         <p>SECURITY</p>
                         <p>防伪检查</p>
                     </div>
                 </li>
             </ul>
         </div>
         <div class="head_other_ad"><img src="/qiantai/img/T184E_BQWT1RXrhCrK.jpg"></div>
         <div class="head_other_ad"><img src="/qiantai/img/T1yvd_BQDT1RXrhCrK.jpg"></div>
         <div class="head_other_ad"><img src="/qiantai/img/T1mahQBmKT1RXrhCrK.jpg"></div>
    </div>
     <div id="head_hot_goods_wrap">
         <div id="head_hot_goods_title">
             <span class="title_span">小米明星单品</span>
             <div id="head_hot_goods_change">
                 <span id="head_hot_goods_prave"><</span>
                 <span id="head_hot_goods_next">></span>
             </div>
         </div>
         <div id="head_hot_goods_content">

         <!-- 商品销售榜 -->
             <ul>
              @foreach($goods0 as $k=>$v)
                 <li>
                     <a href = "/default/{{$v->gid}}"><img src="{{$v->image}}" width = "200px"></a>
                     <a href = "/default/{{$v->gid}}">{{$v->proname}}</a>
                     <a></a>
                 </li>
              @endforeach
             </ul>
         </div>
     </div>
     <!-- 商品智能专区 -->
     <div id="main_show_box">
         <div id="floor_1">
              <div id="floor_head">
                  <span class="title_span">智能硬件</span>
              </div>
         </div>
         <div class="floor_goods_wrap">
             <ul>
                 <li class="floor_goods_wrap_li">
                     <a><img src="/qiantai/img/T1IhLjBC_T1RXrhCrK.jpg"></a>
                 </li>
				@foreach($goods0 as $k=>$v)
                 <li class="floor_goods_wrap_li">
                 <!-- 实例商品跳转 -->
                     <a class="floor_goods_img" href="/default/{{$v->gid}}"><img src="{{$v->image}}" width = "200px" ></a>
                     <a class="floor_goods_tit">{{$v->proname}}</a>
                     <a class="floor_goods_txt">{{$v->miaoshu}}</a>
                     <a class="floor_goods_price"></a>
                 </li>
                @endforeach
                 <div style="clear:both;"></div>
             </ul>
         </div>
     </div>



@endsection



